home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
176-200
/
scopedisk177
/
djprint
/
dj_print.doc
< prev
next >
Wrap
Text File
|
1995-03-19
|
7KB
|
136 lines
DJ_Print (v1.0) by Steve Anderson DJ_Print
NAME
DJ_Print - print a selected file on a DeskJet-500 printer
(or other DeskJet).
DESCRIPTION
I wrote DJ_Print because I couldn't find a way to really take
advantage of the fonts, typestyles available on my new printer,
a DeskJet-500. I really wanted a way to easily decide ahead of
time what font I wanted (the DJ-500 has 3 built in), as well as
things like the margins, font sizes, lines per inch, etc. So,
DJ_Print is the result. This version is a first cut (I've only
had the printer for a couple of weeks...), but it does provide
the buttons and gadgets that are needed at a minimum. The
details of its usage are explained below.
Although it can be used fine on its own, DJ_Print is one of two
programs I've written to help me use the DeskJet. The other is
DJ_Filt, which pre-processes a file, letting you insert command
strings to change fonts, pitches, and whatever else in the
middle of a file. I uploaded DJ_Filt first, on both PLINK and
CIS. If you are at all interested in DJ_Print, you probably can
find a use for DJ_Filt.
USAGE
Most of the buttons on DJ_Print are pretty self-explanatory. I
obviously designed the thing for the DJ-500, with the three
built-in fonts represented. I'm sure I'll get some 'requests'
to handle soft fonts and cartridges (two friends of mine are
likely requestors) at some point.
A few of the gadgets deserve some specific explanation:
o Orientation - On the DJ-500, only the Courier font is valid
in Landscape mode. If you switch from Portrait to Landscape
while you have either Times or Gothic font selected, then
DJ_Print will automatically switch to Courier.
o "Lines Per Inch" - This gadget defines the number of lines of
text that will be printed in each vertical inch on the page.
It lets you use whatever value you want, but if you change
the point size you may see the LPI change. What happens is
DJ_Print calculates the maximum non-overlapping LPI for that
point size. If the LPI you have entered is larger than that,
it is reset to the max. However, you can then go and change
the LPI back to something overlapping if you want.
o Fonts - If you change fonts, the font information for the
other fonts will be disabled. I guess that makes sense...
o File to Print - Ah yes. So you want to print a file. When
you click on this gadget you get the ARP File Requester to
pick a file to print. After selecting the file its name
will appear in the gadget. If you then select the "Send To
Printer" button, the file will be printed according to how
you currently have the other settings on DJ_Print. The
actual series of events is explained below.
o Send To Printer - Pressing this gadget will cause the
information you have selected to be sent to your printer.
First, the format information you have selected is sent.
Then the file you have named is sent. Note that if you have
not picked an item (i.e. the original prompt is still
displayed in the gadget) only the format data is sent.
o Close button (upper left corner of window) - This is how
you quit DJ_Print. Pressing the close button will quit
the program immediately - current settings are not sent
to the printer.
WHAT DJ_PRINT DOES
1) DJ_Print creates and sends PCL (Printer Control Language,
from Hewlett-Packard) to your printer on the PAR: port.
2) If you specify a file to send, DJ_Print reads the file
and sends it to the PAR: port (NOT the PRT: port). The
only thing it does to the data is insert a carriage
return after any line feeds that don't already have one
(Amiga text files normally don't have returns, but the
DeskJet's expect them).
The reason that DJ_Filt works only with the PAR: port is
that anything to the PRT: port goes through the printer
driver, which almost certainly will reset and / or ignore
the settings you've picked on DJ_Print. If there are folks
out there who have their DeskJet connected to their serial
port let me know - I can probably make a special verison
for you pretty easily.
FUTURE ADDITIONS:
As mentioned above, this is one of two programs I've put
together since I bought my DeskJet-500 about a week ago. The
other is DJ_Filt. Although not as user-friendly (no buttons
or anything) I think it is the more important of the two. It
lets you change the print characteristics (including italics,
underline, size, pitch, etc.) within a document whenever you
want.
If there is enough interest (I really don't know how many
folks out there have DeskJet's, much less how many have any
interest in these programs) I can probably come up with some
combined version. It would probably look alot like DJ_Print,
but would be able to preprocess the print file to insert
PCL codes.
FINALLY
This may be an admission of guilt, but I really haven't
tested this program very much - it doesn't seem like some-
thing complicated enough to justify alot of testing. Never-
theless, I do not promise anything about what it should or
can do, and I certainly can't be responsible if it does
something you didn't want it to do.
The good news is, like DJ_Filt, this program is FREE and you
are free to redistribute it as long as you gain no profit for
either the program or the redistribution of it without my
permission. Also like DJ_Filt, if you really like it and feel
like you just HAVE TO pay me for my effort, send me DeskJet
ink or $$ to buy more ink, so that I can afford to waste my
time like this.
If you have some CONSTRUCTIVE comments, I would really like
to hear them. Keep in mind I have a real job, and it pays me
well enough that any further work on this has to reasonable -
I'm not going to quit to satisify your urges. Nevertheless,
send in your urges (but only about this program):
PLink: SNEVL
Compuserve: 74375,1514
Snail Mail: Steve Anderson
1136 11th Street
Manhattan Beach, CA 90266